﻿using System.Runtime.Serialization;
using ActionService.MessageBase;
using ActionService.Criteria;
using ActionService.DataTransferObjects;

namespace ActionService.Messages
{
    /// <summary>
    /// Respresents a product request message from client to web service.
    /// </summary>
    [DataContract(Namespace = "http://www.yourcompany.com/types/")]
    public class ProductRequest : RequestBase
    {
        /// <summary>
        /// Selection criteria and sort order
        /// </summary>
        [DataMember]
        public ProductCriteria Criteria;

        /// <summary>
        /// Product object.
        /// </summary>
        [DataMember]
        public ProductDto Product;

        [DataMember]
        public int CategoryId;
    }
}